package com.shuo;

import com.shuo.model.GameOuter;

/**
 * [Java 内部类的意义](http://baijiahao.baidu.com/s?id=1598003115763845288&wfr=spider&for=pc)
 */
public class Main {
    public static void main(String[] args) {
        GameOuter out = new GameOuter();
        // 静态公有内部类的实例化
        GameOuter.InnerStaticPublic innerStatic  = new GameOuter.InnerStaticPublic();
        // 非静态公有内部类的实例化
        GameOuter.InnerNormalPublic innerNormalPublic =  out.new InnerNormalPublic();
    }

    public void testInner() {
        GameOuter out = new GameOuter();
        // 静态公有内部类的实例化
        GameOuter.InnerStaticPublic innerStatic  = new GameOuter.InnerStaticPublic();
        // 非静态公有内部类的实例化
        GameOuter.InnerNormalPublic innerNormalPublic =  out.new InnerNormalPublic();
    }
}
